from django.db import models

# Create your models here.
# 链接用户数据
class User(models.Model):
    s_userPhone = models.CharField(default='无',max_length=11, verbose_name="用户手机号")
    s_userName = models.CharField(default='小花',max_length=11, verbose_name="用户昵称")
    s_userPassword = models.CharField(default='未命名设备',max_length=11, verbose_name="密码")
    I_deviceNumber = models.IntegerField(default=0, verbose_name='设备数量')
    


class Device(models.Model):
    s_userPhoneFlag = models.CharField(default='无',max_length=100, verbose_name="用户手机号")
    s_deviceName = models.CharField(default='无',max_length=11, verbose_name="设备命名")
    s_deviceType = models.CharField(default='0',max_length=11, verbose_name="设备类型")
    s_deviceOnline = models.CharField(default='离线',max_length=11, verbose_name="在线状态")
